package com.ehi.@appName@.resource;

import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;

import org.junit.Assert;
import org.junit.Test;

import com.ehi.@appName@.domain.Carrier;

public class CarrierResourceIntTest extends BaseIntTest {

    @Test
    public void testGetCarrier() {
        Response response = target("/carrier/9001").request().accept(MediaType.APPLICATION_JSON).get();
        Carrier carrier = response.readEntity(Carrier.class);
        Assert.assertEquals("CA", carrier.getStateAbbr());
    }

    @Test
    public void testGetQuestionNotFound() {
        Response response = target("/carrier/9999").request().accept(MediaType.APPLICATION_JSON).get();
        Assert.assertEquals(200, response.getStatus());
    }

}
